package org.lightrpc;

/**
 * This class models a remote call and includes the url, path, port and port of
 * the actual call.
 * 
 * @author miku
 * 
 */
public class RemoteCallUrl {
	private String host;
	private int port;
	/** The root path. */
	private String rootPath;
	/** The service path. includes the actual service and service function names */
	private String servicePath;

	public RemoteCallUrl(String url, int port, String rootPath) {
		this.host = url;
		this.port = port;
		this.rootPath = rootPath;
	}
	
	public String getCompleteUrl(){
		return host +":"+ port + rootPath + servicePath;
	}

	public String getRootPath() {
		return rootPath;
	}

	public void setRootPath(String rootPath) {
		this.rootPath = rootPath;
	}

	public String getServicePath() {
		return servicePath;
	}

	public void setServicePath(String servicePath) {
		this.servicePath = servicePath;
	}

	public String getHost() {
		return host;
	}

	public void setHost(String url) {
		this.host = url;
	}

	public int getPort() {
		return port;
	}

	public void setPort(int port) {
		this.port = port;
	}

}
